package com.workspace.js_website.bean;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.security.core.GrantedAuthority;

/**
 * 角色权限类
 */

public class Role implements GrantedAuthority {

    private Long role_id;
    private String rolename;

    public Long getId() {
        return role_id;
    }

    public void setId(Long id) {
        this.role_id = id;
    }

    public String getName() {
        return rolename;
    }

    public void setName(String name) {
        this.rolename = name;
    }

    @JsonIgnore
    @Override
    public String getAuthority() {
        return rolename;
    }
}
